

import { action, observable, makeAutoObservable } from 'mobx';
class Store {
    @observable
    count = 1;
    @observable
    loginUser: any;
    @action
    setCount = () => {
        setTimeout(() => {
            this.count++;
        });
        
    }
    constructor() {
        makeAutoObservable(this);
    }
    @action
    setLoginUser = (user: any) => {
        this.loginUser = user;
    } 
}
export const store = new Store();